package com.xian.wsim.dto;

import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class MessageDto implements Serializable {
    private Long id;
    private Long senderId;
    private Long receiverId;
    private String content;
    private Integer type; // 1: TEXT, 2: IMAGE, 3: FILE, 4: VIDEO
    private Integer status; // 1: SENT, 2: DELIVERED, 3: READ
    private Boolean isCompressed;
    private Long sequenceNumber;
    private LocalDateTime sendTime;
    private LocalDateTime deliveredTime;
    private LocalDateTime readTime;
    private String relatedUrl;
    private String sessionId;
}